package com.flashphoner.api
{	
	import com.adobe.cairngorm.control.FrontController;
	
	/**
	 * Dispatcher for all application events
	 * **/	
	internal class PhoneController extends FrontController 
	{	
		private static var UUID : String = "33de0550-44d6-4550-b133-43344716776a";
		
		public function PhoneController()
		{
			init();
		} 

		private function init(): void
		{	
			addCommand(MainEvent.TALK , PhoneCommand );
			addCommand(MainEvent.OUT , PhoneCommand);
			addCommand(MainEvent.IN , PhoneCommand);
			addCommand(MainEvent.BUSY, PhoneCommand);
			addCommand(MainEvent.FINISH,PhoneCommand);
			addCommand(MainEvent.SESSION_PROGRESS,PhoneCommand);
			addCommand(MainEvent.CONNECTED,PhoneCommand);	
			addCommand(MainEvent.REGISTERED,PhoneCommand);
			addCommand(MainEvent.DISCONNECT,PhoneCommand);	
		}
	}
}